Latch and Switch

Latch

Latch: Sequential circuit that watches all inputs continuously and changes its outputs at any time independently of a clocking signal.

SR-Latch (Reset-Set Latch): Use two inputs and two outputs.

On Q’: Exists mainly for manufacturers. Not present in dynamic memory.

Simplest Latch Circuit

The simplest SR Latch can be made with two NOR gates wired together like so:

A (R)B (S)QQ’
00MEMORYMEMORY
0110
1001
1100

When S=R=0, the circuit acts as a memory cell and keeps its previous state.

Note: We don’t like it when R=S=1, because it creates a Q=Q' relationship, so some books will say this is not permitted.

On Tracing: Look for inputs that tell you the result in one-shot, e.g.,

D Latch

Used to capture (latch) the logic level present on the Data line.

DQQ’
001
110

Flip-Flop

High and Low Level

If the circuit uses a clock, we call it a flip-flop, otherwise it is a switch.

High v.s. Low Level: A high-level flip flop only responds to input when the clock is a high voltage, a low-level flip flop only responds when it’s low voltage.

High Level Triggered RS-Flip Flop:

RSCQQ’
000MEMORYMEMORY
010MEMORYMEMORY
100MEMORYMEMORY
110MEMORYMEMORY
001MEMORYMEMORY
01110
10101
11100

Low Level Triggered RS-Flip Flop:

RSCQQ’
000MEMORYMEMORY
01010
10001
11000
001MEMORYMEMORY
011MEMORYMEMORY
101MEMORYMEMORY
111MEMORYMEMORY

High Level Triggered D-Flip Flop:

DCQQ’
00MEMORYMEMORY
10MEMORYMEMORY
0101
1110

Low Level Triggered D-Flip Flop:

DCQQ’
0001
1010
01MEMORYMEMORY
11MEMORYMEMORY

Edge Triggered

Rising v.s. Falling Edge Triggered: Triggers on the edge of the clock pulse (when it’s going from 0 \to 1 (rising) or 1 \to 0 (falling)).

Rising Edge Triggered SR Flip Flop:

Falling Edge Triggered SR Flip Flop:

Rising Edge Triggered D Flip Flop:

Falling Edge Triggered D Flip Flop:

T Flip-Flop

If T=0, Q will be toggled. If T=0, Q will be memory.

TQQ’
0MEMORYMEMORY
1Q’Q

T flip-flops aren’t manufactured in the real world, we just use JK flip-flops.

JK Flip-Flop

“JK doesn’t stand for Jack-Kilby” — The professor

Operates on sequential logic, output depends not only on current inputs, but the previous state as well.

JKCQQ’
XX0MEMORYMEMORY
001MEMORYMEMORY
01110
10101
111Q’Q